/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.siteuseraccount.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 系统账户Entity
 * @author gy
 * @version 2017-08-24
 */
public class SiteSysAccount extends DataEntity<SiteSysAccount> {
	
	private static final long serialVersionUID = 1L;
	private Integer userId;		// id系统ID：1234567
	private String currentAccount;		// 当前可用余额
	private String lastdayCurrentBal;		// 上次可用余额
	private String frozenAccount;		// 冻结余额
	private String lastdayFrozenBal;		// 上次冻结余额
	private String accountName;		// 账户名称
	private Date lastExchangeTime;		// 最后交易日期
	private String remark;		// 备注
	private Date createTime;		// create_time
	
	public SiteSysAccount() {
		super();
	}

	public SiteSysAccount(String id){
		super(id);
	}

	@NotNull(message="id系统ID：1234567不能为空")
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	public String getCurrentAccount() {
		return currentAccount;
	}

	public void setCurrentAccount(String currentAccount) {
		this.currentAccount = currentAccount;
	}
	
	public String getLastdayCurrentBal() {
		return lastdayCurrentBal;
	}

	public void setLastdayCurrentBal(String lastdayCurrentBal) {
		this.lastdayCurrentBal = lastdayCurrentBal;
	}
	
	public String getFrozenAccount() {
		return frozenAccount;
	}

	public void setFrozenAccount(String frozenAccount) {
		this.frozenAccount = frozenAccount;
	}
	
	public String getLastdayFrozenBal() {
		return lastdayFrozenBal;
	}

	public void setLastdayFrozenBal(String lastdayFrozenBal) {
		this.lastdayFrozenBal = lastdayFrozenBal;
	}
	
	@Length(min=1, max=100, message="账户名称长度必须介于 1 和 100 之间")
	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="最后交易日期不能为空")
	public Date getLastExchangeTime() {
		return lastExchangeTime;
	}

	public void setLastExchangeTime(Date lastExchangeTime) {
		this.lastExchangeTime = lastExchangeTime;
	}
	
	@Length(min=0, max=50, message="备注长度必须介于 0 和 50 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
}